# $OpenBSD: Makefile,v 1.11 2016/05/29 21:41:45 bentley Exp $

COMMENT=	japanese handwriting recognition library

DISTNAME=	tomoe-0.6.0
REVISION=	2

HOMEPAGE= 	https://osdn.jp/projects/tomoe/
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=tomoe/}

CATEGORIES=	inputmethods japanese

SHARED_LIBS +=  tomoe                1.0      # 1.0

# LGPLv2.1
PERMIT_PACKAGE_CDROM=	Yes

WANTLIB += ffi glib-2.0 gmodule-2.0 gobject-2.0 pcre pthread

MODULES=	devel/gettext \
		textproc/intltool

BUILD_DEPENDS=	textproc/gsed

LIB_DEPENDS=	devel/glib2

CONFIGURE_STYLE=gnu
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib" \
		ac_cv_path_MYSQL_CONFIG="mysql_config-not-found" \
		ac_cv_path_UNZIP="unzip-not-found"

CONFIGURE_ARGS=	--without-python \
		--without-ruby \
		--with-svn-lib=/dev/null \
		--with-svn-include=/dev/null \
		--disable-unihan

FAKE_FLAGS=	sysconfdir=${PREFIX}/share/examples/

post-install:
	rm ${PREFIX}/lib/tomoe/module/dict/*.{a,la}
	rm ${PREFIX}/lib/tomoe/module/recognizer/*.{a,la}

.include <bsd.port.mk>
